package day5;

public abstract class Vehicle {
   private String vehicleid;
   private String brand;
   private int rent;//日租金
    private int seats;
    private String state;//当前状态

    public Vehicle(String vehicleid, String brand, int rent, int seats, String state) {
        this.vehicleid = vehicleid;
        this.brand = brand;
        this.rent = rent;
        this.seats = seats;
        this.state = state;
    }

    public String getVehicleid() {
        return vehicleid;
    }

    public void setVehicleid(String vehicleid) {
        this.vehicleid = vehicleid;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getRent() {
        return rent;
    }

    public void setRent(int rent) {
        this.rent = rent;
    }

    public int getSeats() {
        return seats;
    }

    public void setSeats(int seats) {
        this.seats = seats;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
    public void show(){
        System.out.println("车"+"\t"+getBrand()+",车牌号  "+getVehicleid()+",座位数  "+getVehicleid()+"座"
                +",日租金  "+getRent()+"元"+"\t"+getState());
    }
    public abstract double calcRent(int days);//计算租金，根据天数不同折扣，抽象方法

}
